package com.macro.mall.service;

import com.macro.mall.dto.${EntityName}QueryParam;
import com.macro.mall.dto.${EntityName}Vo;
import com.macro.mall.model.*;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ${classDescription}Service
 * Created by ${user} on ${date}.
 */
public interface ${EntityName}Service {
    /**
     * 添加字典值
     */
    int create(${EntityName} ${entityName});

    /**
     * 修改字典值
     */
    int update(Long id, ${EntityName} ${entityName});

    /**
     * 批量删除字典值
     */
    int delete(List<Long> ids);

    /**
     * 获取所有字典值
     */
    List<${EntityName}> list();


    /**
     * 分页获取角色列表
     */
    List<${EntityName}Vo> list(${EntityName}QueryParam ${entityName}QueryParam, Integer pageSize, Integer pageNum);


}
